package org.jeecg.modules.jxc.sale.service;

import org.jeecg.modules.jxc.sale.entity.SaleList;
import org.jeecg.modules.jxc.sale.entity.SaleListGoods;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: tb_sale_list_goods
 * @Author: jeecg-boot
 * @Date:   2021-10-26
 * @Version: V1.0
 */
public interface ISaleListGoodsService extends IService<SaleListGoods> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(SaleListGoods saleListGoods,List<SaleList> saleListList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(SaleListGoods saleListGoods,List<SaleList> saleListList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public List<SaleListGoods> selectByMainId(String mainId);
}
